using System.Configuration;
using MySql.Data.MySqlClient;
using WpfApp1.DataAccess;
using WpfApp1.Models;

namespace WpfApp1.Services;

public class UserService : IUserService
{
    private readonly IUDataAccess _dataAccess;

    public UserService(IUDataAccess dataAccess)
    {
        _dataAccess = dataAccess;
    }

    public User AuthenticateUser(string username, string password)
    {
        return _dataAccess.AuthenticateUser(username, password);
    }
}